﻿using System.Collections.Generic;

public class StepEffectManager:BaseComponent
{
    private Actor _actor;   // 脚印管理器所属Actor.

    public StepEffectManager(Actor actor)
    {
        _actor = actor;
    }

    protected override void OnUpdate(float deltaTime)
    {
        CheckIsCanShowEffect(_actor.GetAvatarInfo());
    }

    /// <summary>
    /// 模拟检查是否应该显示脚印特效.
    /// </summary>
    private bool CheckIsCanShowEffect(AvatarInfo avatarInfo)
    {
        // Example example = Example.GetInstance();
        // List<CombinationSuitInfo> suitInfoDict = example.GetItemRsourceManager().GetAdvancedCombinationSuitList();
        // for (int i = 0; i < suitInfoDict.Count; i++)
        // {
        //     CombinationSuitInfo suitInfo = suitInfoDict[i];
        //     for (int j = 0; j < suitInfo.DressList.Count; j++)
        //     {
        //         for (int k = 0; k < suitInfo.DressList[j].Count; k++)
        //         {
        //             for (int l = 0; l < avatarInfo.appearance_item.Count; l++)
        //             {
        //                 if (avatarInfo.appearance_item[l] == suitInfo.DressList[j][k])
        //                 {
        //                     return true;
        //                 }
        //             }
        //         }
        //     }
        // }
        return false;
    }
}